import React from 'react'
import {
  NavigationScreenProps,
  NavigationParams
} from 'react-navigation'

export default class BasePage extends React.Component<NavigationScreenProps, object> {
  // static navigationOptions: NavigationScreenOptions | NavigationScreenConfig<NavigationScreenOptions>  = {header: null}

  public _goBack (): void {
    this.props.navigation.goBack()
  }

  public _navigate (routerName: string, params?: NavigationParams): void {
    this.props.navigation.navigate(routerName, params)
  }
}
